package mashuaiproject.mashuaiproject.exption;

public class CustomizeException extends RuntimeException {
    private  String message;//出错的状态信息
    private  Integer code;
    public CustomizeException(String message){
        this.message=message;
    }
    public CustomizeException(ICustomizeErrorCode errorCode){
        this.message=errorCode.getMessage();
        this.code=errorCode.getCode();
    }

    @Override
    public String getMessage() {
        return message;
    }

    public Integer getCode() {
        return code;
    }

}
